package com.ha.system.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ha.common.annotation.Excel;
import com.ha.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单信息对象 ha_order_info2
 * 
 * @author admin
 * @date 2021-03-16
 */
public class HaOrderInfo2 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 所属客户 */
    @Excel(name = "所属客户")
    private String customerInfo;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal price;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 房屋信息 */
    @Excel(name = "房屋信息")
    private String info;

    /** 房屋地址 */
    @Excel(name = "房屋地址")
    private String address;

    /** 接待人 */
    @Excel(name = "接待人")
    private String receptionist;

    /** 开单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setCustomerInfo(String customerInfo) 
    {
        this.customerInfo = customerInfo;
    }

    public String getCustomerInfo() 
    {
        return customerInfo;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setReceptionist(String receptionist) 
    {
        this.receptionist = receptionist;
    }

    public String getReceptionist() 
    {
        return receptionist;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("customerInfo", getCustomerInfo())
            .append("price", getPrice())
            .append("phone", getPhone())
            .append("info", getInfo())
            .append("address", getAddress())
            .append("receptionist", getReceptionist())
            .append("orderTime", getOrderTime())
            .toString();
    }
}
